//
//  KSPickerView.h
//  DecxForward
//
//  Created by 程强 on 16/10/27.
//  Copyright © 2016年 程强. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KSPickerView;
@protocol KSPickerViewDelegate <NSObject>
@optional
- (NSInteger)ksPickerView:(KSPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component;
-(NSString*)ksPickerView:(KSPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component;
- (void)ksPickerView:(KSPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component;
- (void)ksPickViewDidConfirmSelected:(KSPickerView *)pickerView;
- (void)ksPickerViewCancel:(KSPickerView *)pickerView;
@end

@interface KSPickerView : UIView
@property (strong, nonatomic) NSString *title;
@property (strong, nonatomic) NSArray *dataAry;
@property (assign, nonatomic) NSInteger components;
@property (weak, nonatomic) id <KSPickerViewDelegate> delegate;
- (void)reloadData;
- (NSInteger)selectedRowInComponent:(NSInteger)component;
@end
